package com.ql.service;

import com.ql.domain.response.JsonResult;
import com.ql.domain.response.MenuNode;
import com.ql.domain.Project;
import com.ql.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {

    JsonResult findAll(String name, Integer page, Integer limit);

    JsonResult save(UserInfo userInfo);

    JsonResult update(UserInfo userInfo);

    JsonResult del(Integer id);

    List<MenuNode> getMenuPower(Integer id);

    JsonResult userCorrelationMenu(Integer[] menuIds,Integer userId);

    List<Integer> getPermissionPower(String id);

    JsonResult userCorrelationPermission(String[] permissionIds, String userId);

    List<Project> getSectionPower(String id);

    JsonResult userCorrelationSection(String[] sectionIds, String userId);
}
